<?php
defined('BASEPATH') or exit('No direct script access allowed');
/**
 * Test Model
 * 
 * @author      Nguyen Hai Dang - Gidaff Dev Team
 * @package 	GiCMS
 * @subpackage  TEST Module
 * @category	Module
 */
class User_m extends MY_Model {

    var $_table = 'users';
    var $dojo_fields = array(
        'email' => array(
            'format' => TYPE_TEXT,
            'label_key' => 'user:email'
        ),
        'password' => array(
            'format' => TYPE_TEXT,
            'label_key' => 'user:pass'
        ),        
        'username' => array(
            'format' => TYPE_TEXT,
            'label_key' => 'user:username'
        ),
        'group_id' => array(
            'format' => TYPE_SELECT,
            'edit_able' => 1,
            'label_key' => 'user:group',
            'store' => array(
                'from' => 'users_groups',
                'fields' => 'users_groups.id, users_groups.name'
            ),
            'grid_join' => array(
                'users_groups' => 'users_groups.id = group_id'
            ),
            'display' => 'users_groups.name'
        ),
        'theme_user_backend' => array(
            'format' => TYPE_TEXT,
            'label_key' => 'user:theme'
        )
//       var dojo_grid = array(
//           'view' => array()
//       );
    );
//    var $dojo_grid = array(
//        'fields' => 'id, title, test2_id, status, price, test4',
//        'join' => array(
//            'test4' => 'test1.test4 = test4.id'
//    ));

    function __construct() {
        parent::__construct();     
    }

}

/* End of file models/email_templates_m.php */